package com.example.day14.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Author Linyh
 * @Description
 * @Date 2022/7/22 9:02
 **/

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("student")
public class Student {

    @TableId(type = IdType.AUTO)
    private Long sid;

    private String sname;

    private int age;

    private String sex;

    private Long snum;

    @Version
    private Integer version;

    @TableLogic
    private Integer delted;

    @TableField(fill = FieldFill.INSERT)
    private Date create_time;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date update_time;

    private Long cid;

}
